﻿@model ContactMvc4TB.Models.Worktime.HolidayListModel

@{
    ViewBag.Title = "Urlaubstage pro Jahr";
}

<div class="span12">
    <h2>Urlaubstage pro Jahr</h2>
    <hr />
    <div class="well">Die Liste der Urlaubstage für jedes Jahr.</div>
</div>

<div class="span12">
    @Html.ShowCustomMessage()
    @Html.MyValidationSummary()
    <table class="table table-striped">
        <thead>
            <tr>
                <th style="width: 35px;"></th>
                <th>
                    @WorktimeViews.Year
                </th>
                <th>
                    @WorktimeViews.Days
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model.HolidayEntries)
            {
                <tr>
                    <td>
                        @Html.ActionLink(" ", EActionWorktime.HolidayCreate.ToString(), EControllers.Worktime.ToString(), new { id = item.Id, userId = Model.UserId }, new { @class = "btn btn-mini", data_icon="icon-pencil", title=Navigation.EditRESX })
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Year)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Days)
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>

<div class="span12">
    <div class="well">
        @Html.ActionLink(Navigation.CreateRESX, EActionWorktime.HolidayCreate.ToString(), EControllers.Worktime.ToString(), new { id = 0, userId = Model.UserId }, new { @class = "btn btn-small", data_icon="icon-plus" })
    </div>
</div>
